<?php

namespace App\Http\Requests\Admin\UEditor;

use App\Http\Requests\ApiRequest;
use Illuminate\Http\UploadedFile;

/**
 * @deprecated
 *
 * @property UploadedFile upfile
 */
class UEImageStoreRequest extends ApiRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'upfile'     => 'required|file',
        ];
    }

    /**
     * @return array
     */
    public function messages()
    {
        return [
            'upfile.*'     => '图片必须是文件',
        ];
    }

}
